﻿
Partial Class WebForm_SearchOrganization
    Inherits System.Web.UI.UserControl


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            'Me.BindData()
            Me.BindGV()
        End If
    End Sub
End Class

Partial Class WebForm_SearchOrganization
    Public Sub BindGV()
        Dim dt As New Data.DataTable

        dt.Columns.Add("OrganizationName")
        dt.Columns.Add("OrganizationType")

        Dim dr As Data.DataRow

        dr = dt.NewRow
        dr("OrganizationName") = "台北市"
        dr("OrganizationType") = "一般"
        dt.Rows.Add(dr)

        Me.gv.DataSource = dt
        Me.gv.DataBind()
    End Sub
End Class